package com.yfve.eol;

import android.annotation.SuppressLint;
import android.app.Application;
import android.car.hardware.CarYFDiagManager;
import android.content.Context;
import android.util.Log;

public class EolApplication extends Application {
    private static final String TAG = "Eol:EolApplication";

    @SuppressLint("StaticFieldLeak")
    private static Context sContext;
    private static CarYFDiagManager sCarYFDiagManager = null;

    public static Context getAppContext() {
        return sContext;
    }

    public static CarYFDiagManager getCarYFDiagManager() {
        return sCarYFDiagManager;
    }

    public static void setCarYFDiagManager(CarYFDiagManager carYFDiagManager) {
        sCarYFDiagManager = carYFDiagManager;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        sContext = this.getApplicationContext();
        Log.i(TAG, "onCreate");
    }

}
